package com.cowin.base;

import com.google.common.base.CaseFormat;

import java.util.HashMap;

/**
 * Copyright (C), 1998-2019, 奇瑞信息
 *
 * @author : 于超
 * @Date: 2019/10/31 10:31
 * @Description: mybatis 返回Map Key 转驼峰方式命名
 */
public class CamelKeyMap extends HashMap {
    @Override
    public Object put(Object key, Object value) {
        key = CaseFormat.UPPER_UNDERSCORE.to(CaseFormat.LOWER_CAMEL, (String) key);
        return super.put(key, value);
    }
}